'use strict'

const router = require('koa-router')();

const bodyParser = require('koa-bodyparser');

const {fin,zc} = require('../utils/rou');
function fn (app){
    let files = fin();
    zc(files,router);
    app.use(bodyParser());
    app.use(router.routes());
}

module.exports =fn


